package gl.web.apk.controller;

import gl.web.apk.common.config.Config;

import java.io.File;

import com.jfinal.core.Controller;
import com.jfinal.log.Log;

public class DownloadController extends Controller {
	private Log log = Log.getLog(getClass());
	
	public void index(){
		String s  = getPara("filename");
		log.info("download"+s);
		renderFile(new File(Config.getImgDir()+s));
	}

}
